package com.hubu.tree;
import com.hubu.tree.util.Comparator;
import com.hubu.tree.util.Visitor;
public class RedBlackTree <K> extends AvlTree<K>{
    private static final boolean RED=false;
    private static final boolean BLACK=true;
    public RedBlackTree(Comparator<K> comparator, Visitor<K> visitor) {
        super(comparator, visitor);
    }
    private static class RBNode<K> extends BinarySearchTreeNode<K> {
        protected boolean color;

        public RBNode(K key, TreeNode<K> left, TreeNode<K> right, TreeNode<K> parent, boolean color) {
            super(key, left, right, parent);
            this.color = color;
        }
    }
    //红黑树添加需要做出调整
    @Override
    public void afterAdd(TreeNode<K> node) {
    }
}
